#include "CGICommandList.h"

namespace Alice {
	CGICommandListExecutor gCGICommandListExecutor;
	CGICommandListBase::CGICommandListBase() {
		CommandLink = &Root;
	}
	void CGICommandList::BeginRenderPass(const CGIRenderPassInfo* InInfo, const TCHAR* Name)
	{
		GetContext().RHIBeginRenderPass(InInfo,Name);
	}
	CGICommandListImmediate& CGICommandListImmediate::Get()
	{
		return CGICommandListExecutor::GetImmediateCommandList();
	}
	CGICommandListImmediate& CGICommandListExecutor::GetImmediateCommandList()
	{
		return gCGICommandListExecutor.mCommandListImmediate;
	}
}